//
//  PoftfilioStoreInfoCell.m
//  BaseProject
//
//  Created by 王洋 on 2020/7/3.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "PoftfilioStoreInfoCell.h"

@implementation PoftfilioStoreInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        
        [self.storeIcon pp_clipCorners:UIRectCornerAllCorners radius:6];
    });
}

- (void)fillCellWithModel:(CommonOpusModel *)model {
    
    [self.storeIcon sd_setImageWithURL:[NSURL URLWithString:model.sellerLogo] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    self.storeName.text = model.sellerName;
    
}

- (IBAction)goStoreAction:(id)sender {
    if (self.PoftfilioStoreInfoBlock) {
        self.PoftfilioStoreInfoBlock();
    }
}


@end
